#include <stdlib.h>
#include "util_process_state.h"

int main(void)
{
    void *ret;
    proc_state_bootup("version123", NULL);

    while (1)
    {
        proc_state_print();
        sleep(3);
        proc_state_update();
        sleep(3);

        ret = proc_state_query(FILE_TMP_IDX, KEY_RUN_SECOND);
        if(ret != NULL) {
            printf("KEY_RUN_SECOND = %u\n",(unsigned int)ret);
        }
        sleep(2);
    }
    return 0;
}
